﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.Security.Cryptography;

namespace Yelper.Web.Helpers {

    public class AuthenticationHelper {

        private static UnicodeEncoding enc = new UnicodeEncoding();
        private static SHA384Managed sha = new SHA384Managed();

        public static byte[] StringToSHA384(string text) {
            return sha.ComputeHash(enc.GetBytes(text));
        }
    }

}